using System;
using umbraco.cms.businesslogic;
using umbraco.cms.businesslogic.datatype;
using umbraco.interfaces;

namespace idseefeld.com.images
{
	/// <summary>
	/// Summary description for DataTypeFolderbrowser.
	/// </summary>
	/// <summary>
	/// Summary description for DataTypeUploadField.
	/// </summary>
	public class DataTypeFolderBrowserPng: BaseDataType,IDataType
	{
		private IDataEditor _Editor;
        private DefaultData _baseData;
		private IDataPrevalue _prevalueeditor;

		public override IDataEditor DataEditor 
		{
			get
			{
				if (_Editor == null)
                    
                _Editor = new folderBrowserPng(Data, ((folderBrowserPngPreValue)PrevalueEditor).Configuration);
				return _Editor;
			}
		}

		public override IData Data 
		{
			get 
			{
				if (_baseData == null)
                    _baseData = new DefaultData(this);
				return _baseData;
			}
		}
		
		public override Guid Id
		{
			get
			{
                return new Guid("5D559F5B-F929-49B6-B1F3-0E2E97BBCBF2");
			}
		}

		public override string DataTypeName
		{
			get
			{
                return "idseefeld: Folder browser png";
			}
		}

		public override IDataPrevalue PrevalueEditor 
		{
			get 
			{
				if (_prevalueeditor == null)
					_prevalueeditor = new folderBrowserPngPreValue(this);
				return _prevalueeditor;
			}
		}
	}
}
